package com.lsx.service.impl;

import com.lsx.Mapper.AppShopMapper;
import com.lsx.entity.Account;
import com.lsx.entity.Wallet;
import com.lsx.service.AppShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("AppShopService")
public class AppShopServiceImpl implements AppShopService {

    @Autowired
    private AppShopMapper appShopMapper;

    @Override
    public Wallet queruRamaining(Integer wid) {
        return appShopMapper.queruRamaining(wid);
    }

    @Override
    public void consume100(Integer wid) {
        appShopMapper.consume100(wid);
    }

    @Override
    public void refund20(Integer wid) {
        appShopMapper.refund20(wid);
    }

    @Override
    public Account accountDetails(Integer wid) {
        return appShopMapper.accountDetails(wid);
    }
}
